package ai.people.netmon.framework.domain.archives.vo;

import ai.people.netmon.framework.domain.archives.entity.GangGroupOrgPersonBO;
import ai.people.netmon.framework.domain.graph.tags.GangGroupMembersTag;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhenglin
 * @date 2022/6/21
 */
@Data
@NoArgsConstructor
public class GangGroupOrgPersonVO {
    /**
     * 危险程度
     */
    private Integer degreeOfDanger;
    /**
     * 团伙身份
     */
    private String groupIdentity;

    /**
     * 图片
     */
    private String picture;

    /**
     * 姓名
     */
    private String name;
    /**
     * 身份证
     *
     */
    private String idNumber;
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 标签
     */
    private List<String> tags;
    /**
     * 社交信息
     */
    private List<GangGroupArchivesVO.Social> socials;

    public GangGroupOrgPersonVO(GangGroupMembersTag gangGroupMembersTag, GangGroupOrgPersonBO bo) {
        this.degreeOfDanger = gangGroupMembersTag.getDegreeOfDanger() == null ? null : Integer.valueOf(gangGroupMembersTag.getDegreeOfDanger());
        this.groupIdentity = gangGroupMembersTag.getGroupIdentity();
        this.picture = bo.getPicture();
        this.name = bo.buildNameFirst();
        this.idNumber = bo.getIdNumber();
        this.phoneNumber = bo.buildPhoneNumberFirst();
        this.tags = bo.buildTagsList();
        this.socials = bo.buildSocialsList();
    }
}
